<!-- 关系图标签设置 -->
<template>
  <div class="echart-grid">
    <FormItem
      :form="form"
      option="echart.series.label.show"
      :label="$demoi18n('echart.label.showDataLabels')"
      type="switch"
    />
    <FormItem
      :form="form"
      option="rotate"
      :label="$demoi18n('echart.label.textDirection')"
      type="number"
      :min="-90"
      :max="90"
    />
    <FormItem
      :form="form"
      option="labelRow"
      :label="$demoi18n('echart.label.labelRow')"
      type="number"
      :min="1"
      :stepStrictly="true"
    />
    <FormItem
      :form="form"
      option="labelLength"
      :label="$demoi18n('echart.label.labelLength')"
      type="number"
      :min="2"
      :stepStrictly="true"
    />
    <FormItem
      :form="form"
      option="fontSize"
      :label="$demoi18n('word.fontSize')"
      type="number"
    />
    <FormItem
      :form="form"
      option="echart.series.label.fontWeight"
      :label="$demoi18n('echart.label.bold')"
      type="select"
      :options="fontWeightOptions"
    />
    <FormItem
      :form="form"
      option="echart.series.label.fontFamily"
      :label="$demoi18n('echart.label.fonts')"
      type="select"
      :options="fontFamilyOptions"
    />
  </div>
</template>
<script>
import FormItem from '@/components/common/echart/form-item.vue';
import { fontWeightOptions, fontFamilyOptions } from '@/components/common/echart/form-item-options.js';
export default {
  components: { FormItem },
  mixins: [],
  props: {
    form: Object,
  },
  data() {
    return {
      fontWeightOptions,
      fontFamilyOptions,
    };
  },
  computed: {},
  watch: {},
  methods: {},
};
</script>
<style lang="less" scoped></style>
